package com.youyou.service;

import com.youyou.entity.Account;

public interface AccountService {
    //此处的方法是根据项目需求来定义，与dao层的不一样
    //登录
    public Account login(String userName,String password);
    //通过userId查询余额
    public  Integer getBalanceById(Integer userId);
    //修改密码
    public  boolean updatepassword(String newPassword,String oldPassword,Integer userId);
    //存钱
    public  boolean saveMoney(Integer money,Integer usersId);
    //取钱
    public  boolean getMoney(Integer money,Integer usrId);
     //转钱
    public  boolean transMoney(Integer money,Integer userIdDest,Integer userIdMyself);
}
